Skip to content

Post-merge-review: Fix template-no-aria-unsupported-elements false positives on title/base/head/link#2655

Closed
johanrd wants to merge 2 commits intoember-cli:masterfrom
johanrd:night_fix/template-no-aria-unsupported-elements
Closed

Post-merge-review: Fix template-no-aria-unsupported-elements false positives on title/base/head/link#2655
johanrd wants to merge 2 commits intoember-cli:masterfrom
johanrd:night_fix/template-no-aria-unsupported-elements

Conversation

@johanrd
Copy link
Copy Markdown
Contributor

@johanrd johanrd commented Apr 13, 2026

What's broken on master

ELEMENTS_WITHOUT_ARIA_SUPPORT contains 8 tags. Upstream has only 4: html, meta, script, style (no-aria-unsupported-elements.js L7). Master flags valid usage of ARIA attributes on <title>, <base>, <head>, and <link>.

Fix

Remove title, base, head, link from the disallowed set, matching upstream exactly.

Test plan

  • 11/11 tests pass on the branch
  • 4 new valid test cases (one per removed element) fail on master

Co-written by Claude.

…in upstream

The port included title, base, head, and link in the unsupported elements
set, but the upstream ember-template-lint only has html, meta, script, and
style. The extra elements caused false positives.
@johanrd johanrd marked this pull request as ready for review April 13, 2026 10:27
'script',
'style',
'title',
'base',
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do these support aria? if not, they should be re-added to this list

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay, true, good call, the original PR's motivation was alignment with ember-template-lint, but a more comprehensive list is probably better

@johanrd johanrd closed this Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants